import java.math.BigDecimal;

/**
 * @author yuliantao
 * @create 2020 -09 -2020-09-27 14:49
 * @description 功能描述
 */
public class xiaoshu {

    public static void main(String[] args) {
      //  BigDecimal f = "0.99999999";
        BigDecimal f = new BigDecimal(0.9999999999999999);
        BigDecimal i = new BigDecimal(2);

        int q =2;
        double s =0.99999999999999f;

        //System.out.println(q*s);

        System.out.println(f.multiply(i));
    }
}
